<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListReserveRangeInfo.class.php');

class AlibabaPifatuanProductDetailListReserveInfo extends SDKDomain {

       	
    private $maxQuantity;
    
        /**
    * @return 
    */
        public function getMaxQuantity() {
        return $this->maxQuantity;
    }
    
    /**
     * 设置     
     * @param Long $maxQuantity     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setMaxQuantity( $maxQuantity) {
        $this->maxQuantity = $maxQuantity;
    }
    
        	
    private $minQuantity;
    
        /**
    * @return 
    */
        public function getMinQuantity() {
        return $this->minQuantity;
    }
    
    /**
     * 设置     
     * @param Long $minQuantity     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setMinQuantity( $minQuantity) {
        $this->minQuantity = $minQuantity;
    }
    
        	
    private $reserveRangeInfos;
    
        /**
    * @return 
    */
        public function getReserveRangeInfos() {
        return $this->reserveRangeInfos;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaPifatuanProductDetailListReserveRangeInfo[] $reserveRangeInfos     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setReserveRangeInfos(AlibabaPifatuanProductDetailListReserveRangeInfo $reserveRangeInfos) {
        $this->reserveRangeInfos = $reserveRangeInfos;
    }
    
        	
    private $supportReserve;
    
        /**
    * @return 
    */
        public function getSupportReserve() {
        return $this->supportReserve;
    }
    
    /**
     * 设置     
     * @param Boolean $supportReserve     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSupportReserve( $supportReserve) {
        $this->supportReserve = $supportReserve;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "maxQuantity", $this->stdResult )) {
    				$this->maxQuantity = $this->stdResult->{"maxQuantity"};
    			}
    			    		    				    			    			if (array_key_exists ( "minQuantity", $this->stdResult )) {
    				$this->minQuantity = $this->stdResult->{"minQuantity"};
    			}
    			    		    				    			    			if (array_key_exists ( "reserveRangeInfos", $this->stdResult )) {
    			$reserveRangeInfosResult=$this->stdResult->{"reserveRangeInfos"};
    				$object = json_decode ( json_encode ( $reserveRangeInfosResult ), true );
					$this->reserveRangeInfos = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaPifatuanProductDetailListReserveRangeInfoResult=new AlibabaPifatuanProductDetailListReserveRangeInfo();
						$AlibabaPifatuanProductDetailListReserveRangeInfoResult->setArrayResult($arrayobject );
						$this->reserveRangeInfos [$i] = $AlibabaPifatuanProductDetailListReserveRangeInfoResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "supportReserve", $this->stdResult )) {
    				$this->supportReserve = $this->stdResult->{"supportReserve"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "maxQuantity", $this->arrayResult )) {
    			$this->maxQuantity = $arrayResult['maxQuantity'];
    			}
    		    	    			    		    			if (array_key_exists ( "minQuantity", $this->arrayResult )) {
    			$this->minQuantity = $arrayResult['minQuantity'];
    			}
    		    	    			    		    		if (array_key_exists ( "reserveRangeInfos", $this->arrayResult )) {
    		$reserveRangeInfosResult=$arrayResult['reserveRangeInfos'];
    			$this->reserveRangeInfos = new AlibabaPifatuanProductDetailListReserveRangeInfo();
    			$this->reserveRangeInfos->setStdResult ( $reserveRangeInfosResult);
    		}
    		    	    			    		    			if (array_key_exists ( "supportReserve", $this->arrayResult )) {
    			$this->supportReserve = $arrayResult['supportReserve'];
    			}
    		    	    		}
 
   
}
?>